package com.dsg.entity.model.apply;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @program: erp
 * @description:
 * @author: lironglai
 * @create: 2020-08-15 14:45
 */
@Data
public class DsgApplyCarModel {

    @ExcelProperty(value = "油公司")
    @NotEmpty(message = "油公司不能為空")
    private String oilComNo;

    @ExcelProperty(value = "批次號")
    private String checkBatchNo;

    @ExcelProperty(value = "車牌")
    @NotEmpty(message = "車牌不能為空")
    private String carNo;

    @ExcelProperty(value = "油咭類型")
    private String cardType;

    @ExcelProperty(value = "狀態")
    @NotEmpty(message = "狀態不能為空")
    private String checkStatus;

    @ExcelProperty(value = "原因")
    private String checkApprovalResult;

    @ExcelProperty(value = "最后使用时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @NotEmpty(message = "最后使用时间不能為空")
    private Date checkLastTime;
}
